﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.WindowsAzure.StorageClient;

namespace TestHarnessWebRole.Data
{
    public class Customer : TableServiceEntity
    {
        private string lastName;

        public Customer()
        {
            this.RowKey = Guid.NewGuid().ToString("N");
        }

        public string FirstName
        {
            get;
            set;
        }

        public string LastName
        {
            get
            {
                return this.lastName;
            }
            set
            {
                this.lastName = value;
                this.PartitionKey = "Customers";
            }
        }

        public string CompanyId
        {
            get;
            set;
        }
    }
}
